package ink.lovejinhu.leetcode;

/**
 * @author jinhu
 * created 2021-08-03 8:36
 */
public class Solution_0709 {
    public String toLowerCase(String s) {
        StringBuilder res = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) >= 'A' && s.charAt(i) <= 'Z') {
                res.append((char) (s.charAt(i) + 'a' - 'A'));
            } else {
                res.append(s.charAt(i));
            }

        }
        return res.toString();
    }

    public static void main(String[] args) {
        System.out.println('a' - 'A');
    }
}
